home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Quake Busters
/
QUAKE.bin
/
pc
/
shared.dir
/
00946_Script_(Sp) Volume control
< prev
next >
Wrap
Text File
|
1996-06-10
|
358b
|
16 lines
-- will compute sound volume
on mouseDown
set the constraint of sprite 42 to 43
end
on mouseUp
set a = the locH of sprite 41
set b = the mouseH
set c = b - a
set d = (c * 7 / 145) + 4 -- orig position of vol control is
put d -- in middle thus plus ab.half of 7
set the soundLevel to d
beep
end mouseUp